package dongshi.daddy.springioc.three.three_three.bean;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * 动物实现类，狗
 */
@Component
@Primary
public class Dog implements Animal {
    @Override
    public void use() {
        System.out.println("狗【" + Dog.class.getSimpleName() + "】 是看门用的");
    }
}
